﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Logistics.Model
{
    public class PageData<T>
    {
        private int totalNum;
        public PageData()
        {
            this.items = new List<T>();
        }
        public int TotalNum
        {
            get { return totalNum; }
            set { totalNum = value; }
        }
        private IEnumerable<T> items;
        public IEnumerable<T> Items
        {
            get { return items; }
            set { items = value; }
        }

        public object DataObj
        {
            get;
            set;
        }

        public int CurrentPage { get; set; }
        public int TotalPageCount { get; set; }
    }

    public class PageModel
    {
        private int totalNum;
        public PageModel()
        {
           
        }
        /// <summary>
        /// 总条数
        /// </summary>
        public int totalnum
        {
            get { return totalNum; }
            set { totalNum = value; }
        }

        public object datamod
        {
            get;
            set;
        }

        /// <summary>
        /// 当前页
        /// </summary>
        public int currentpage { get; set; }
        /// <summary>
        /// 每页显示总条数
        /// </summary>
        public int totalpagecount { get; set; }
    }
}
